/**
 * Created by PC on 2017/8/30.
 */
$().ready(function () {
// 在键盘按下并释放及提交后验证提交表单
    $("form").validate({
        rules: {
            name: { // 员工姓名
                required: true,
                maxlength: 16
            }
        },
        messages: {
            name: {
                required: "请输入员工姓名",
                maxlength: "用户名最长不超过16个字符"
            }
        }
    })
});